import requests
import time

timestamp = str(int(time.time() * 1000))

headers = {
    'Accept': 'application/json, text/javascript, */*; q=0.01',
    'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
    'Cache-Control': 'no-cache',
    'Connection': 'keep-alive',
    'Content-Type': 'application/x-www-form-urlencoded',
    'Origin': 'https://aq.99.com',
    'Pragma': 'no-cache',
    'Referer': 'https://aq.99.com/',
    'Sec-Fetch-Dest': 'empty',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Site': 'same-site',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0',
    'sec-ch-ua': '"Not)A;Brand";v="99", "Microsoft Edge";v="127", "Chromium";v="127"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
}

data = '{"action":"create","challenge":"eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJORF9DSEVDS19DT0RFIiwidGlja2V0IjoiMmI3N2VmNjljMDM2NTgzYmNiMTQzMWYyZjdmNzhhNGIiLCJleHAiOjE3MjQyNDQzMTEsImlhdCI6MTcyNDI0MzcxMSwianRpIjoiNjdkYTg5YWItZWJmOS00OTY4LWEwNzEtZjJjMDdjZDMyYTc3In0.bt9n2oUVkpxZXHLT-ZDHE4kjDKDtZ3V6Yq6l9wrbZas","ts":' + timestamp + '}'

response = requests.post('https://checkcode.99.com/slide', headers=headers, data=data)

print(response.text)
